package com.atguigu.spzx.pay.service;

import jakarta.servlet.http.HttpServletRequest;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * ClassName: AlipayService
 * Package: com.atguigu.spzx.pay.service
 * Description:
 *
 * @Author 刘强
 * @Create 2024/7/19 18:10
 * @Version 1.0
 */
public interface AlipayService {
    /**
     * 去支付  -> 返回一个支付宝的支付页面  -> 表单字符串
     * @param orderNo
     * @return
     */
    String submitAlipay(String orderNo);

    /**
     * 支付宝的异步通知
     * @param paramMap
     * @param request
     * @return
     */
    String callback(Map<String, String> paramMap, HttpServletRequest request);
}
